import request from '@/utils/request'


export function getChannelList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/channel/getList',
    method: 'post',
    data: query
  })
}   


export function saveChannel(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/channel/save',
    method: 'post',
    data: query
  })
}   

export function removeChannel(query){
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/channel/remove',
    method: 'post',
    data: query
  })
}

export function deleteChannel(query){
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/customer/admin/channel/delete',
    method: 'post',
    data: query
  })
}